package edu.gatech.cs2340.bytebankers.tests.UI;

import static org.junit.Assert.*;

import java.awt.Dimension;

import javax.swing.JFrame;

import org.junit.Test;

import edu.gatech.cs2340.bytebankers.model.Journey;
import edu.gatech.cs2340.bytebankers.model.Leader;
import edu.gatech.cs2340.bytebankers.model.Wagon;
import edu.gatech.cs2340.bytebankers.model.profession.Banker;
import edu.gatech.cs2340.bytebankers.presenter.ITownPresenter;
import edu.gatech.cs2340.bytebankers.presenter.TownPresenter;
import edu.gatech.cs2340.bytebankers.view.ITownView;
import edu.gatech.cs2340.bytebankers.view.RiverView;
import edu.gatech.cs2340.bytebankers.view.TownView;

public class TownViewTest 
{
	public static void main(String[] args)
	{
		JFrame frame = new JFrame();
		Journey journey = new Journey();
		
		Wagon wagon = new Wagon();
		Leader leader = new Leader();
		Banker banker = new Banker();
		
		leader.setProfession(banker);
		journey.setLeader(leader);
		journey.setWagon(wagon);
		journey.setLastLocation(journey.getlastLocation().getNextLocation());
		
		ITownPresenter presenter = new TownPresenter(journey);
		ITownView view = new TownView(presenter);
		
		presenter.setView(view);
		
		frame.setPreferredSize(new Dimension(850, 550));
		frame.setTitle("Town View Test");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.getContentPane().add((TownView) view);
		frame.pack();
		frame.setVisible(true);
	}
}
